﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendProtocol.aspx.cs" 
        Inherits="ProtocolsFeature.Layouts.ProtocolsFeature.SendProtocol" 
        DynamicMasterPageFile="~masterurl/default.master" %>


<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

   <asp:ScriptManagerProxy runat="server" ID="ProxyScriptManager">
    </asp:ScriptManagerProxy>


    <style>
    
    .rowHeader { border:1px solid #FFDF8C;background-color:#FFFBDE; }
    .button { background-color:#FFFBDE;width:100px;font-size:8pt }
    
    </style>
    
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top">
                <asp:Panel runat="server" ID="panelInfoMessage">
                <table cellspacing="0" cellpadding="3" style="border:1px solid #FFDF8C"  width="100%">
                    <tr style="background-color:#FFFBDE;">
                    <td>
                        <table cellpadding="3" cellspacing="3" border="0">
                        <tr>
                        <td nowrap="nowrap">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/_layouts/images/info16by16.gif" />
                        </td>
                        <td nowrap="nowrap"  style="font-family:Arial;font-size:11px;color:Black" width="99%">
                            <asp:Label runat="server" CssClass="MessageTitle" ID="labelMessage" ></asp:Label>
                        </td>
                        </tr>
                        </table>
                    </td>
                    </tr>
                </table>
                </asp:Panel>
                <br />
            </td>
        </tr>

        <tr>
        <td>
        
            <asp:Panel runat="server" ID="panelAssign" >
            <table cellpadding="0" cellspacing="2" border="0" >
            <tr>
                <td colspan="2">
                        
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td class="ms-formlabel">
                            <b><asp:Localize runat="server" ID="labelApprovers"></asp:Localize></b>
                        </td>
                    </tr>
                    <tr>
                        <td  class="ms-formbody" nowrap="nowrap">
                            <table cellpadding="0" border="0" cellspacing="2">
                            <tr>
                            <td><SharePoint:PeopleEditor runat="server" ID="peopleForward"
                                   SelectionSet="User,SecGroup,SPGroup"
                                     MultiSelect="false"  /></td>
                            <td> <asp:Button runat="server" CssClass="button" ID="btnAdd" Text="Add" OnClick="btnAddApprover_Click" />  </td>
                            </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                    
                        <td><br />
                             <b><asp:Localize runat="server" ID="labelApproversList"></asp:Localize></b>
                        </td>
                    </tr>

                    <tr>
                        <td><br />
                        <asp:GridView ID="gridApprovers" 
                            runat="server" 
                            AutoGenerateColumns="False" 
                            OnRowDeleting="gridApprovers_RowDeleting"
                            BorderWidth="0px" GridLines="None" CellSpacing="3" CellPadding="2"
                            CssClass="table.ms-form" BorderStyle="Solid"
                            Width="350px">
                            <RowStyle CssClass="GridItem"></RowStyle>
                            <HeaderStyle CssClass="rowHeader" />
                            
                            <Columns>
            
                                <asp:BoundField DataField="ID" HeaderStyle-CssClass="hidden" 
                                     HeaderStyle-HorizontalAlign="Left" Visible="false"  ItemStyle-CssClass="hidden"    />
      

                             <asp:BoundField DataField="RecNo"  HeaderStyle-CssClass="rowHeader"  
                              HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="left" HeaderText="#"  />
                      

                              <asp:BoundField DataField="Name"  HeaderStyle-CssClass="rowHeader"  
                              HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="left" HeaderText="Name"  />
                      
                            <asp:CommandField   HeaderStyle-CssClass="rowHeader"  DeleteImageUrl="~/_layouts/images/delete.gif"  ShowDeleteButton="True" ButtonType="Image" />
                       
                       </Columns>
                   

                    </asp:GridView>
                    <br />

                         </td>

                    </tr>
                
                    </table>
                </td>
            </tr>
            </table>
            </asp:Panel>
        </td>
        
        </tr>

  
    </table>
   
 


    <br /><br />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top">
                <table cellspacing="0" cellpadding="4" border="0" width="100%">
                    <tr>

                        <td nowrap="nowrap" class="ms-vb" width="99%">
                            <asp:Button Text="Save" Width="150px" runat="server" ID="btnSave"  
                                OnClick="btnSave_Click" CssClass="ms-ButtonHeightWidth" />
                        </td>

                        <td nowrap="nowrap" class="ms-vb" width="99%">
                            <asp:Button Text="Start Protocol Workflow" Width="150px" runat="server" ID="btnStart"  
                                OnClick="btnStart_Click" CssClass="ms-ButtonHeightWidth" />
                        </td>
                        <td nowrap="nowrap" class="ms-vb" width="99%">
                            <asp:Button Text="Cancel" runat="server" ID="btnCancel"  
                                OnClick="btnCancel_Click" CssClass="ms-ButtonHeightWidth" />
                        </td>
                    </tr>
                </table>
                <br />
            </td>
            <td width="1%" class="ms-vb" valign="top">&nbsp;</td>
        </tr>
    </table>



    <asp:HiddenField runat="server" ID="hiddenApprovers" />
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server" Visible="false">
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" Visible="false"  runat="server" >
</asp:Content>
